﻿using DapperExtensions.Mapper;
using Nova_MOD;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nova_MOD
{
    public class TCommands
    {
        public long TaskID { get; set; }

        public int TaskMode { get; set; }

        public string Tray_ID { get; set; }

        public long PosS_ID { get; set; }

        public long PosE_ID { get; set; }

        public int EquipmentS_ID { get; set; }

        public int EquipmentE_ID { get; set; }

        public int TaskStatus { get; set; }

        public int WriteToPLC { get; set; }

        /// <summary>
        /// 是否同步给WCS
        /// </summary>
        public int SyncWCS { get; set; }

        /// <summary>
        /// 0:初始值 1：入库中间处理  2：出库中间处理  9：任务已经执行
        /// </summary>
        public int Step { get; set; }

        public long CommandOrder { get; set; }

        public int ErrorNo { get; set; }

        public string ErrorComment { get; set; }

        public string OID { get; set; }

        public string Memo { get; set; }

        public DateTime CDT { get; set; }

        public int? FLAG_1 { get; set; }

        public string User_Name { get; set; }
    }


    //public class TCommandsMap : ClassMapper<TCommands>
    //{
    //    public TCommandsMap()
    //    {
    //        const string tbName = "TCommands";
    //        base.Table(tbName);
    //        Map(f => f.TaskID).Key(KeyType.Identity);
    //        AutoMap();
    //    }
    //}
}
